﻿using System.Windows;
using PairingMatrix.Model;

namespace PairingMatrix.ViewModel
{
    public class ProjectCardAssignmentViewModel : ViewModelBase
    {
        private ProjectCardAssignmentModel _model;

        public ProjectCardAssignmentViewModel(ProjectCardAssignmentModel model)
        {
            _model = model;
        }

        public string Date
        {
            get { return _model.Date; }
            set
            {
                if (_model.Date == value)
                    return;
                _model.Date = value;
                OnPropertyChanged("Date");
            }
        }

        public string CardNumbers
        {
            get { return _model.CardNumbers; }
            set
            {
                if (_model.CardNumbers == value)
                    return;
                _model.CardNumbers = value;
                OnPropertyChanged("CardNumbers");
            }
        }

        private Point _position;
        public Point Position
        {
            get { return _position; }
            set
            {
                if (_position == value)
                    return;
                _position = value;
                OnPropertyChanged("Position");
            }
        }


    }
}